#include "wxsstopwatch.h"
#include "../wxsitemresdata.h"
#include <wx/stopwatch.h>

namespace {
  wxsRegisterItem<wxsStopWatch> Reg(_T( "StopWatch" ), _T( "StopWatch" ),wxsTTool,_T( "工具" ),30,false );
}

wxsStopWatch::wxsStopWatch( wxsItemResData* Data ):
  wxsTool(Data,&Reg.Info,0,0 ) {
}

void wxsStopWatch::OnBuildCreatingCode() {
  switch( GetLanguage() ) {
  case wxsCPP:
    AddHeader( _T( "<wx/stopwatch.h>" ), GetInfo().ClassName, 0 );
    BuildSetupWindowCode();
    break;
  case wxsUnknownLanguage:
  default:
    wxsCodeMarks::Unknown( _T( "wxsStopWatch::OnBuildCreatingCode" ), GetLanguage() );
  }
}

void wxsStopWatch::OnEnumToolProperties( M_Code_unused long Flags ) {
}
